﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Handy_Domain.DNS.Model
{
    public class PageBaseModel<T> where T : class
    {
        /// <summary>
        /// 列表总数
        /// </summary>
        private int totalCount;
        public int TotalCount
        {
            get { return totalCount; }
            set { totalCount = value; }
        }

        /// <summary>
        /// 页大小
        /// </summary>
        private int pageSize = 10;

        public int PageSize
        {
            get { return pageSize; }
            set { pageSize = value; }
        }

        /// <summary>
        /// 页码
        /// </summary>
        private int pageNumber = 1;

        public int PageNumber
        {
            get { return pageNumber; }
            set { pageNumber = value; }
        }

        /// <summary>
        /// 列表数据
        /// </summary>
        public ObservableCollection<T> list = new ObservableCollection<T>();
    }
}
